
//定义类
class WashMachine {
    //定义成员变量
    public String brand;
    public String type;
    public String color;
    //定义成员方法
    public void setWachMachine(String brand,String type,String color) {
        this.brand = brand;
        this.type = type;
        this.color = color;//this的用法与注意
    }
    public void printWach() {
        System.out.println(this.brand+this.type+this.color);
    }

}


public class testDemo {
    public static void main(String[] args) {
        //对象的实例化
        WashMachine washmachine = new WashMachine();
        washmachine.setWachMachine("TCL","big","rad");
        washmachine.printWach();

    }


}
